package cn.singno.bob.jpa.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import cn.singno.bob.jpa.annotation.search.Result;
import cn.singno.bob.jpa.annotation.search.Search;

@Entity
@Table(name="student")
@Result(fields = {"name"})
public class Student implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -7598557766314966882L;
	
	public  String FLAG = "flag 来了";
	
	@Search(EQ="${cn.singno.bob.jpa.entity.User.getData(cn.singno.bob.jpa.entity.User.s)}")
	private String id;
	
	@Search(EQ="${cn.singno.bob.jpa.entity.User.getData(cn.singno.bob.jpa.entity.User.id)}")
	private String userId;
	
	@Search(EQ="${cn.singno.bob.jpa.entity.User.getData(cn.singno.bob.jpa.entity.User.getId())}")
	private String name;
	@Search(EQ="${cn.singno.bob.jpa.entity.User.getData(cn.singno.bob.jpa.entity.User.FLAG)}")
	private Boolean flag;
	
	@Search(EQ="${cn.singno.bob.jpa.entity.User.getData(FLAG)}")
	private String aa;
	@Search(EQ="${cn.singno.bob.jpa.entity.User.getData('123')}")
	private String bb;
	
	@Search(EQ="${FLAG}")
	private String cc;
	
	
	
	
	@Id
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	public Boolean getFlag() {
		return flag;
	}
	public void setFlag(Boolean flag) {
		this.flag = flag;
	}
	public String getAa() {
		return aa;
	}
	public void setAa(String aa) {
		this.aa = aa;
	}
	public String getBb() {
		return bb;
	}
	public void setBb(String bb) {
		this.bb = bb;
	}
	public String getCc() {
		return cc;
	}
	public void setCc(String cc) {
		this.cc = cc;
	}
	
	
}
